package Level_two;

import java.util.Scanner;

public class Five {
    public static void main(String[] args) {
        System.out.println("请输入工龄：");
        int workYear = new Scanner(System.in).nextInt();
        System.out.println("请输入基本工资：");
        int baseSalary = new Scanner(System.in).nextInt();
        int salary = 0;
        if (workYear >= 10 && workYear < 15) {
            salary = 5000;
        } else if (workYear >= 5 && workYear < 10) {
            salary = 2500;
        } else if (workYear >= 3 && workYear < 5) {
            salary = 1000;
        } else if (workYear >= 1 && workYear < 3) {
            salary =  500;
        } else if (workYear >= 0 && workYear < 1) {
            salary =  200;
        }
        System.out.println("您目前工作了 " + workYear + " 年，基本工资为 " + baseSalary + " 元, 应涨工资 " + salary + " 元,涨后工资 " + (baseSalary + salary) + " 元");
    }
}

